import HTTP from "./xhr.js"
const http = new HTTP
/**
 * login
 */
export const apiLogin =(params)=>{
    return  http.post('/commonsuite/login', params, {
    // return  http.post('/iplat4j/login', params, {
        headers: { 'content-type': 'application/x-www-form-urlencoded' },
      })
} 
/**
 * 权限菜单
 * creToken  ''
 * loginName  ''
 * oldPassword
 * password
 * rePassword
 */
export const apiPasswordUpdate =(params)=>{
    return http.post('/commonsuite/service/XS0104/update', params)
}
export const apiLogout =(params)=>{
    // return  http.post('/iplat4j/login', params)
    return  http.post('/iplat4j/logout', params, {
        headers: { 'content-type': 'application/x-www-form-urlencoded' },
      })
} 